package com.zetyun.tiger.connector.format;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.zetyun.rt.meta.jsonschema.annotation.JsonSchemaTitle;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class AttrPromotionBean {

    @JsonSchemaTitle("map字段名称")
    @JsonProperty(defaultValue = "RT_RES",required = true)
    private String mapFieldName;

    @JsonSchemaTitle("map的key字段名称")
    @JsonPropertyDescription("不填则默认将map中所有字段提升到顶层map")
    private String keyFieldName;

    @JsonSchemaTitle("返回值字段名称")
    private String resFieldName;

    @JsonSchemaTitle("是否删除map字段")
    private Boolean enableDel;
}
